import request from '@/utils/request'
export default {
    getList:function(params) {
        return request({
            url: '/task/order/list',
            method: 'get',
            params
        })
    },
    add:function(params) {
        return request({
            url: '/task/order',
            method: 'post',
            params
        })
    },
    update:function(params) {
        return request({
            url: '/task/order',
            method: 'PUT',
            params
        })
    },
    remove:function(id) {
        return request({
            url: '/task/order',
            method: 'delete',
            params: {
                id: id
            }
        })
    },
    submitAppeal:function (params) {
      return request({
        url: '/task/order/submitAppeal',
        method: 'PUT',
        params
      })
    },
    getServiceFeeIncome:function () {
      return request({
        url: '/task/order/getServiceFeeIncome',
        method: 'get'
      })
    },
    getIncome:function () {
      return request({
        url: '/task/order/getIncome',
        method: 'get'
      })
    }
}
